package com.wh.hotel.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 酒店预订规则表
 * </p>
 *
 * @author 
 * @since 2023-05-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hotel_book_rule")
public class HotelBookRule extends Model<HotelBookRule> {

    private static final long serialVersionUID=1L;

    /**
     * 预订规则ID
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    private Date createDt;

    /**
     * 更新时间
     */
    private Date updateDt;

    /**
     * 规则名称
     */
    private String ruleName;

    /**
     * 预订规则json
     */
    private String ruleJson;


    public static final String ID = "id";

    public static final String CREATE_DT = "create_dt";

    public static final String UPDATE_DT = "update_dt";

    public static final String RULE_NAME = "rule_name";

    public static final String RULE_JSON = "rule_json";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
